package com.hhx.ec.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.hhx.ec.config.FeignConfig;
import com.netflix.ribbon.proxy.annotation.Hystrix;
/**
 * fallback 后面的javabean是异常处理类的实现
 * @author Administrator
 *
 */
@FeignClient(value = "eureka-client-1",configuration = FeignConfig.class,
		fallback = HystrixError.class)
public interface FeignService {
	
	@GetMapping(value ="/test_ribbon/eutext")
	String getService(@RequestParam(value = "name") String name);

}
